#ifndef  _FATFSAPI_H
#define  _FATFSAPI_H
#include "stm32f4xx.h"
#include "ff.h"
#include "sys.h"
#include "W25Qxx.h"
#include "Netconfig.h"
#include "USART.h"
#include "string.h"
#include "socket.h"



extern FATFS fs;         /* Work area (file system object) for logical drive */
extern FIL fsrc;         /* file objects */
extern FRESULT res;
extern UINT br;
extern char path[64];



FRESULT scan_files(char *path);
int SD_TotalSize(void);
void format_disk(void);
void Write_test(void);
void AudioFile_process(void);
void Delete_file(char *filename);
void File_Write(char *pname, uint8_t *filedata, uint32_t len);
void File_Read(char *pname);

#endif

